export function moveElement(array, fromIndex, toIndex) {
    let newArray = [...array];
    const element = newArray.splice(fromIndex, 1)[0];
    newArray.splice(toIndex, 0, element);
    return newArray;
  }